var should = require('should');
var bossHandler = require('../../../app/servers/pvp/handler/bossHandler');
var config = require('../../config');
var configUtil = require('../../../app/util/configUtil');
var analyze = require('kc-analyze');
var dataApi = require('../../../app/libs/dataApi');

suite('测试bossHandler', function () {
    setup(function (done) {
        var analyze_config = configUtil.load('analyze');
        var game_config = configUtil.load('game');
        analyze.initialize({
            host: analyze_config.host,
            server_id: game_config.server_id
        });
        done();
    });

    suite('fight', function () {
        test('boss战', function (done) {
            var msg = {
                road_id: 91
            };
            var session = {};
            session.uid = config.role_id;

            var boss_handler = new bossHandler();
            boss_handler.fight(msg, session, function (err, res) {
                done();
            });
        });
    });
});
